<?php
	session_start();
	header("Content-Type:text/html;Charset=gb2312");
	date_default_timezone_set('Etc/GMT-8');
	ini_set("display_errors","On");
	ini_set('max_execution_time', '0');
	error_reporting(7);
	ob_start();
	
	require_once ("config.php");
	require_once ("players.php");
	require_once ("class.php");
	require_once ("function.php");
	require_once ("pinyin.php");
	require_once ("label.php");
	require_once ("template.php");
	set_error_handler("my_error_handler");
	
	$runstart= execTime();
	$root = ereg_replace("[/\\]{1,}",'/',dirname(__FILE__));
	$root = ereg_replace("[/\\]{1,}",'/',substr($root,0,-3));
	$db	= new AppDataBase(app_dbserver,app_dbuser,app_dbpass,app_dbname);
	
	$template = new AppTemplate();
	$CurVodid=-100; $CurVodTypeid=-100; $CurVodTopicid=-100; $CurVodTypeParentid=-100;
	$CurVodName="";$CurVodEnName="";$CurVodTypeName="";$CurVodTypeEnName="";$CurVodTopicName="";$CurVodTopicEnName="";
	$CurArtid=-100; $CurArtTypeid=-100; $CurArtTopicid=-100; $CurArtTypeParentid=-100;
	$CurArtName="";$CurArtEnName="";$CurArtTypeName="";$CurArtTypeEnName="";$CurArtTopicName="";$CurArtTopicEnName="";
?>